package cn.ly.security.service.impl;

import cn.ly.security.dao.HistoryMapper;
import cn.ly.security.dao.UserMapper;
import cn.ly.security.entity.History;
import cn.ly.security.service.HistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HistoryServiceImpl extends ServiceImpl<HistoryMapper,History> implements HistoryService {
    @Autowired
    HistoryMapper historyMapper;
    @Override
    public List<History> selectAllHistory(Integer current,Integer size) {
        List<History> histories = historyMapper.selectAllHistory((current-1)*size,size);
        return histories;
    }
}
